from PyQt5.QtCore import *
from PyQt5.QtGui import *
from PyQt5.QtWidgets import *


class Pop_up_warning(object):
    def setupUi(self, Form):
        if not Form.objectName():
            Form.setObjectName(u"Form")
        Form.resize(500, 400)
        self.gridLayout = QGridLayout(Form)
        self.gridLayout.setObjectName(u"gridLayout")
        self.verticalLayout = QVBoxLayout()
        self.verticalLayout.setObjectName(u"verticalLayout")
        self.warning_info_label = QLabel(Form)
        self.warning_info_label.setObjectName(u"warning_info_label")
        font = QFont()
        font.setPointSize(30)
        font.setBold(True)
        font.setWeight(75)
        self.warning_info_label.setFont(font)
        self.warning_info_label.setLayoutDirection(Qt.LeftToRight)
        self.warning_info_label.setAlignment(Qt.AlignCenter)

        self.verticalLayout.addWidget(self.warning_info_label)

        self.warning_info_text = QLabel(Form)
        self.warning_info_text.setObjectName(u"warning_info_text")
        font1 = QFont()
        font1.setPointSize(20)
        self.warning_info_text.setFont(font1)
        self.warning_info_text.setAlignment(Qt.AlignCenter)

        self.verticalLayout.addWidget(self.warning_info_text)

        self.gridLayout.addLayout(self.verticalLayout, 0, 0, 1, 1)

        self.retranslateUi(Form)

        QMetaObject.connectSlotsByName(Form)

    # setupUi

    def retranslateUi(self, Form):
        Form.setWindowTitle(QCoreApplication.translate("Form", u"Form", None))
        self.warning_info_label.setText(QCoreApplication.translate("Form", u"\u51fa\u9519\u4e86\uff01", None))
        self.warning_info_text.setText(
            QCoreApplication.translate("Form", u"\u7528\u6237\u540d\u6216\u5bc6\u7801\u4e0d\u6b63\u786e", None))
    # retranslateUi
